
<?php include_once 'common/header.php';  ?>
<!-- admin_main -->
<div class="admin_main"><!-- Admin_top end --> <?php include_once 'common/user_left.php';  ?>
<!-- Admin_Left End -->
<div class="admin_right">
<div class="admin_right_title">
<strong>用户管理</strong> >> 资料上传
</div>
<div class="admin_right_info">
<div class="payonline_form">
<iframe name="iframe" id="iframe" style="display:none;"></iframe>
<form action="/ychadmin/user/update_att/" method="post"
	id=upload_form name="upload_form" enctype="multipart/form-data"  target="iframe">
	<input  type="hidden" name="act" id="act" value="edit"/>
	<input  type="hidden" name="id" id="id" value="<?php echo $att_info['id']?>"/>
	<input  type="hidden" name="user_id" id="user_id" value="<?php echo $att_info['user_id']?>"/>
	<dl class="online_dl">
		<dt>用户名：</dt>
		<dd>
			<span id="usernameTip"><?php echo $att_info['username']?></span>
		</dd>
	</dl>
	<dl class="online_dl">
		<dt>上传资料：</dt>
		<dd>
			<input type="file" name="litpic" id="litpic" />
			<span id="litpicTip"  class="litpicTip">格式:jpg|png 最大:512K 最高:3000px 最宽:2048px</span>
			<div>
				<img style="max-width:220px;" src="<?php  echo 'http://'.$_SERVER['SERVER_NAME'].'/'.$att_info['litpic']?>" />
			</div>
		</dd>
	</dl>
	
	<dl class="online_dl">
		<dt>资料类型：</dt>
		<dd>
			<select id="type_id" name="type_id">
				<option value="0">请选择</option>
				<?php foreach($type_list as $key => $val){?>
					<option value="<?php echo $key;?>" <?php if($att_info['type_id']==$key){echo 'selected';}?>><?php echo $val;?></option>
				<?php }?>
			</select>
			<span id="type_idTip"></span>
		</dd>
	</dl>
	<dl class="online_dl">
		<dt>备注说明：</dt>
		<dd>
			<textarea id="name" name="name" style="width: 400px;height: 150px;"><?php echo $att_info['name']?></textarea>
		</dd>
	</dl>
	<div class="payment_btm">
	   <input type="submit" class="btn_b" value="提交"  />
	</div>	
</form>
</div>
</div>
</div>
<!-- Admin_Right End --></div>
<!-- admin_main end -->
<div id="dialog" title="系统提示" style="display: none">
<p id="msg" style="text-align: center"></p>
</div>


</body>
</html>
